﻿using System.Web;
using System.Web.Optimization;

namespace Guan.CMS.Web
{
    public class BundleConfig
    {
        // 有关 Bundling 的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/cufon").Include(
                "~/Scripts/cufon/*.js"));

            //CuFon: Enables smooth pretty custom font rendering. 100% SEO friendly. To disable, remove this section
            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/jquery.validate*"));

            // 使用 Modernizr 的开发版本进行开发和了解信息。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/roll").Include(
                        "~/Scripts/webtry_roll.js"));

            bundles.Add(new StyleBundle("~/Content/base").Include("~/Content/base.css"));
            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));
            bundles.Add(new StyleBundle("~/Content/Site").Include("~/Content/style.css"));
            bundles.Add(new StyleBundle("~/Content/Admin").Include("~/Content/admin.css"));
            bundles.Add(new StyleBundle("~/Content/Bootstrap").Include("~/Content/bootstrap.css").Include("~/Content/bootstrap-responsive.css"));
        }
    }
}